import javax.swing.*;
import static javax.swing.JFrame.*; //引入JFrame的静态常量
public class Example10_1 {
    public static void main(String args[]) {
       JFrame window1=new JFrame("窗口1");
       JFrame window2=new JFrame("窗口2");
       window1.setBounds(60,100,180,100);
       window2.setBounds(260,100,180,100);
       window1.setVisible(true);
       window1.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
       window2.setVisible(true);
       window2.setDefaultCloseOperation(EXIT_ON_CLOSE); 
    }
}
